<?php
namespace Tbf\Bundle\AlipayBundle\Model;
/**
 * 创建交易返回结果
 * 支持下列支付方式:
 *     即时到帐 cdbu create_direct_pay_by_user
 *     标准双接口 ctbu create_trade_by_user
 */
class CreatePaymentResponse {
    /** @var  string */
    protected $trade_id;
    /** @var  string */
    protected $alipay_trade_id;
    /** @var  string */
    protected $trade_status;
    /** @var mixed */
    protected $extra_data;
    /** @var  float */
    protected $money;
    /** @var  \Tbf\Bundle\AlipayBundle\Entity\Transaction */
    protected $transaction;
    /**
     * api部分返回的错误,page部分可以处理
     * @var  string
     */
    protected $api_callback_error;
    /**
     * @param string $alipay_trade_id
     */
    public function setAlipayTradeId($alipay_trade_id)
    {
        $this->alipay_trade_id = $alipay_trade_id;
    }

    /**
     * @return string
     */
    public function getAlipayTradeId()
    {
        return $this->alipay_trade_id;
    }

    /**
     * @param string $trade_id
     */
    public function setTradeId($trade_id)
    {
        $this->trade_id = $trade_id;
    }

    /**
     * @return string
     */
    public function getTradeId()
    {
        return $this->trade_id;
    }

    /**
     * @param string $trade_status
     */
    public function setTradeStatus($trade_status)
    {
        $this->trade_status = $trade_status;
    }

    /**
     * @return string
     */
    public function getTradeStatus()
    {
        return $this->trade_status;
    }

    /**
     * @param mixed $extra_data
     */
    public function setExtraData($extra_data)
    {
        $this->extra_data = $extra_data;
    }

    /**
     * @return mixed
     */
    public function getExtraData()
    {
        return $this->extra_data;
    }

    /**
     * @param float $money
     */
    public function setMoney($money)
    {
        $this->money = $money;
    }

    /**
     * @return float
     */
    public function getMoney()
    {
        return $this->money;
    }

    /**
     * @param string $api_callback_error
     */
    public function setApiCallbackError($api_callback_error)
    {
        $this->api_callback_error = $api_callback_error;
    }

    /**
     * @return string
     */
    public function getApiCallbackError()
    {
        return $this->api_callback_error;
    }

    /**
     * @param \Tbf\Bundle\AlipayBundle\Entity\Transaction $transaction
     */
    public function setTransaction($transaction)
    {
        $this->transaction = $transaction;
    }

    /**
     * @return \Tbf\Bundle\AlipayBundle\Entity\Transaction
     */
    public function getTransaction()
    {
        return $this->transaction;
    }


}